<%#
# To change this template, choose Tools | Templates
# and open the template in the editor.
%>

<% if @university != nil %>
<% content_for :college_name do %>
 <%= h(@university.name)  %>
<%end%>
<%end%>
<%require 'htmlentities'
coder = HTMLEntities.new
%>

<h1><%= coder.decode(@advertisment.title.capitalize)%></h1>

<% if @advertisment.location != "" %>
<div style="color:blue;">(<%= h @advertisment.location %>)</div>
<%end%>
<hr  size=2px>

<span style="color:green">Posted on :</span> <%= h @advertisment.created_at.to_formatted_s(:long_ordinal) %>
<br />
<% if @advertisment.user_id != nil %>
<span style="color:green">Posted by :</span> <%= h @advertisment.user.name %>
<%end%>
<br />
<span style="color:green">Reply to :</span>use the form on the right
<p style="margin-top:10px">
 <% if @advertisment.description != "" %>
  <%= h @advertisment.description %>
 <%end%>
</p>


